/* GameCharacter - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Date;

public abstract class GameCharacter extends Renderable {
	public int anInt2250;
	public int anInt2251;
	public int anInt2252;
	public static boolean chatOptionsNeedRedraw = false;
	public int anInt2254;
	public int[] anIntArray2255 = new int[10];
	public int anInt2256;
	public int anInt2257;
	public int[] anIntArray2258;
	public int anInt2259;
	public int anInt2260;
	public int anInt2261;
	public int anInt2262;
	public int anInt2263;
	public int anInt2264;
	public int anInt2265;
	public int anInt2266;
	public int anInt2267;
	public int anInt2268;
	public int anInt2269;
	public int anInt2270;
	public int anInt2271;
	public int anInt2272;
	public int[] anIntArray2273;
	public int anInt2274;
	public int anInt2275;
	public int anInt2276;
	public int anInt2277;
	public static JString aClass3_2278 = Class39_Sub5_Sub9.createJString(119, "Name des Gegenstands eingeben:");
	public int anInt2279;
	public int anInt2280;
	public static JString aClass3_2281;
	public int anInt2282;
	public int anInt2283;
	public boolean[] aBooleanArray2284;
	public static int anInt2285 = 0;
	public int[] anIntArray2286;
	public int anInt2287;
	public int anInt2288;
	public static JString aClass3_2289;
	public int anInt2290;
	public int anInt2291;
	public int anInt2292;
	public int anInt2293;
	public int orientation;
	public JString aClass3_2295;
	public int anInt2296;
	public int anInt2297;
	public boolean aBoolean2298;
	public static int anInt2299;
	public int anInt2300;
	public int anInt2301;
	public static JString aClass3_2302;
	public int anInt2303;
	public int anInt2304;
	public int anInt2305;
	public int anInt2306;
	public static JString aClass3_2307;
	public int anInt2308;
	public static JString aClass3_2309;
	public static JString aClass3_2310;
	public int anInt2311;
	public int anInt2312;
	public static int anInt2313;
	public int[] anIntArray2314;
	public static int anInt2315;
	public int anInt2316;
	public int anInt2317;
	public int anInt2318;
	public static JString aClass3_2319;

	public static void method507(int i) {
		aClass3_2278 = null;
		aClass3_2319 = null;
		aClass3_2281 = null;
		aClass3_2289 = null;
		aClass3_2302 = null;
		aClass3_2307 = null;
		aClass3_2309 = null;
		aClass3_2310 = null;
	}

	public void method508(int i, boolean bool, byte i_0_, int i_1_) {
		if (anInt2268 != -1 && Class62_Sub1.method1064(anInt2268, (byte) 54).anInt1837 == 1)
			anInt2268 = -1;
		if (!bool) {
			int i_2_ = -anIntArray2314[0] + i_1_;
			int i_3_ = -anIntArray2255[0] + i;
			if (i_2_ >= -8 && i_2_ <= 8 && i_3_ >= -8 && i_3_ <= 8) {
				if (anInt2312 < 9)
					anInt2312++;
				for (int i_4_ = anInt2312; i_4_ > 0; i_4_--) {
					anIntArray2314[i_4_] = anIntArray2314[i_4_ - 1];
					anIntArray2255[i_4_] = anIntArray2255[i_4_ - 1];
					aBooleanArray2284[i_4_] = aBooleanArray2284[i_4_ - 1];
				}
				anIntArray2314[0] = i_1_;
				aBooleanArray2284[0] = false;
				anIntArray2255[0] = i;
				return;
			}
		}
		anIntArray2314[0] = i_1_;
		anInt2312 = 0;
		anInt2254 = 0;
		anIntArray2255[0] = i;
		anInt2274 = 0;
		anInt2301 = anIntArray2314[0] * 128 + anInt2297 * 64;
		anInt2275 = anIntArray2255[0] * 128 + anInt2297 * 64;
	}

	public static void method509(byte i) {
		if (ISAAC.aBoolean1100 && i == 39) {
			RSInterface class39_sub5_sub17 = Class62_Sub2.method1081(Class41.anInt775, Class31.anInt570, i ^ 0x27);
			if (class39_sub5_sub17 != null && class39_sub5_sub17.anObjectArray2004 != null)
				method514(0, class39_sub5_sub17.anObjectArray2004, null, 111, 0, class39_sub5_sub17, 0);
			ISAAC.aBoolean1100 = false;
		}
	}

	public boolean method510(byte i) {
		return false;
	}

	public static void method511(byte i) {
		Class30.aLong536 = 0L;
		Class7.aClass31_123.anInt561 = 0;
		Class46.anInt882 = 0;
		Class39_Sub5_Sub4_Sub2.anInt2220 = 0;
		Class39_Sub5_Sub3.anInt1724 = 0;
		Class39_Sub9.anInt1408 = 0;
		Class39_Sub12.anInt1490 = 0;
		Class39_Sub5_Sub16.anInt1976 = 0;
		Class4.anInt65 = 0;
		Class4.anInt60 = 0;
		Class26.anInt482 = 0;
		Class39_Sub11.anInt1473 = 0;
		if (i != 95)
			method507(-79);
		Class39_Sub5_Sub12.anInt1848 = 0;
		Class39_Sub5_Sub6.anInt1759 = 0;
		Class34.anInt604 = 0;
		Class39_Sub5_Sub4_Sub1.anInt2203 = 0;
		JString.aBoolean1232 = true;
		Class43.aBoolean802 = true;
		CacheArchive.method174(-122);
		PacketStream.outputStream.currentOffset = 0;
		Class39_Sub12.aBoolean1493 = false;
		Class39_Sub5_Sub11.anInt1827 = 0;
		Class24.anInt448 = -1;
		Class4.packetID = -1;
		Class42.anInt787 = 0;
		CacheArchive.anInt1283 = -1;
		Class39_Sub5_Sub11.inputStream.currentOffset = 0;
		Class39_Sub7.anInt1380 = 0;
		Class63.anInt1117 = -1;
		Class39_Sub5_Sub11.anInt1841 = 0;
		Class39_Sub5_Sub2.anInt1692 = 0;
		Class39_Sub5_Sub4_Sub5.method535((byte) 61, 0);
		for (int i_5_ = 0; i_5_ < 100; i_5_++)
			Class2.aClass3Array52[i_5_] = null;
		Class39_Sub9.anInt1411 = -1;
		Class13.anInt208 = 0;
		Class34.anInt605 = (int) (Math.random() * 20.0) - 10 & 0x7ff;
		OnDemandFetcher.anInt1210 = 0;
		RuntimeException_Sub1.anInt1216 = (int) (Math.random() * 100.0) - 50;
		Class39_Sub7.anInt1386 = (int) (Math.random() * 30.0) - 20;
		Class39_Sub9.anInt1401 = (int) (Math.random() * 120.0) - 60;
		Class39_Sub5.anInt1344 = (int) (Math.random() * 80.0) - 40;
		Class39_Sub9.anInt1407 = 0;
		Class39_Sub5_Sub4_Sub1.anInt2180 = 0;
		ISAAC.aBoolean1100 = false;
		CollisionMap.anInt515 = 0;
		Class30.anInt544 = 0;
		Stream.anInt1361 = (int) (Math.random() * 110.0) - 55;
		Class39_Sub5_Sub7.anInt1776 = 0;
		for (int i_6_ = 0; i_6_ < 2048; i_6_++) {
			Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[i_6_] = null;
			ISAAC.aClass39_Sub6Array1104[i_6_] = null;
		}
		for (int i_7_ = 0; i_7_ < 32768; i_7_++)
			Class39_Sub5_Sub4_Sub3.aClass39_Sub5_Sub4_Sub4_Sub1Array2241[i_7_] = null;
		Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109 = Class14.aClass39_Sub5_Sub4_Sub4_Sub2Array211[2047] = new Player();
		Class23.aClass49_434.method953(i ^ ~0x5d);
		RuntimeException_Sub1.aClass49_1217.method953(i - 98);
		for (int i_8_ = 0; i_8_ < 4; i_8_++) {
			for (int i_9_ = 0; i_9_ < 104; i_9_++) {
				for (int i_10_ = 0; i_10_ < 104; i_10_++)
					Class20.groundItems[i_8_][i_9_][i_10_] = null;
			}
		}
		Class15.aClass49_278 = new Deque();
		Class14.anInt232 = 0;
		Class4.anInt62 = 0;
		for (int i_11_ = 0; ObjectDef.anInt1923 > i_11_; i_11_++) {
			Class39_Sub5_Sub16 class39_sub5_sub16 = Class62.method1056(i_11_, 111);
			if (class39_sub5_sub16 != null && class39_sub5_sub16.anInt1978 == 0) {
				Class39_Sub5_Sub4_Sub2.anIntArray2225[i_11_] = 0;
				Class66.anIntArray1152[i_11_] = 0;
			}
		}
		Class62_Sub2.method1084((byte) -87, ISAAC.anInt1095);
		ISAAC.anInt1095 = -1;
		Class62_Sub2.method1084((byte) 107, Tile.anInt1912);
		Tile.anInt1912 = -1;
		Class62_Sub2.method1084((byte) -121, Class39_Sub11.openInterface);
		Class39_Sub11.openInterface = -1;
		Class62_Sub2.method1084((byte) -122, Class39_Sub5.anInt1348);
		Class39_Sub5.anInt1348 = -1;
		Class62_Sub2.method1084((byte) -45, Class39_Sub5_Sub2.anInt1713);
		Class39_Sub5_Sub2.anInt1713 = -1;
		Class62_Sub2.method1084((byte) 107, Class39_Sub5_Sub4_Sub5.openSidebarInterface);
		Class39_Sub5_Sub4_Sub5.openSidebarInterface = -1;
		Class62_Sub2.method1084((byte) -108, Class26.anInt485);
		Node.anInt728 = 3;
		Class39_Sub5_Sub2.anInt1703 = -1;
		Class39_Sub5_Sub3.aClass3_1714 = null;
		Class39_Sub10.anInt1420 = -1;
		anInt2285 = 0;
		Class26.anInt485 = -1;
		Class39_Sub12.aBoolean1489 = false;
		Class39_Sub12.aBoolean1493 = false;
		Class40.anInt756 = 0;
		Class39_Sub5_Sub2.aClass45_1705.method925(null, false, new int[5], i ^ 0x30, -1);
		for (int i_12_ = 0; i_12_ < 5; i_12_++) {
			Class39_Sub14.aClass3Array1519[i_12_] = null;
			RuntimeException_Sub1.aBooleanArray1225[i_12_] = false;
		}
		OnDemandFetcher.method1121(-116);
		Class57.aBoolean1000 = true;
	}

	public static int method512(int i, int i_13_) {
		return (int) (Math.log((double) i_13_ * 0.00390625) * 868.5889638065036 + 0.5);
	}

	public void method513(int i, int i_14_, int i_15_, int i_16_) {
		for (int i_17_ = 0; i_17_ < 4; i_17_++) {
			if (i_14_ >= anIntArray2286[i_17_]) {
				anIntArray2273[i_17_] = i_15_;
				anIntArray2258[i_17_] = i_16_;
				anIntArray2286[i_17_] = i_14_ + 70;
				break;
			}
		}
	}

	public static void method514(int i, Object[] objects, RSInterface class39_sub5_sub17, int i_18_, int i_19_, RSInterface class39_sub5_sub17_20_, int i_21_) {
		int i_22_ = ((Integer) objects[0]).intValue();
		Class39_Sub5_Sub2 class39_sub5_sub2 = Class1.method46(19506, i_22_);
		if (class39_sub5_sub2 != null) {
			int i_23_ = 0;
			int i_24_ = 0;
			int i_25_ = -1;
			int[] is = class39_sub5_sub2.anIntArray1696;
			int[] is_26_ = class39_sub5_sub2.anIntArray1694;
			int i_27_ = -1;
			try {
				Class42.aClass3Array796 = new JString[class39_sub5_sub2.anInt1709];
				RSSocket.anIntArray309 = new int[class39_sub5_sub2.anInt1710];
				int i_28_ = 0;
				int i_29_ = 0;
				for (int i_30_ = 1; objects.length > i_30_; i_30_++) {
					if (!(objects[i_30_] instanceof Integer)) {
						if (objects[i_30_] instanceof JString)
							Class42.aClass3Array796[i_29_++] = (JString) objects[i_30_];
					} else {
						int i_31_ = ((Integer) objects[i_30_]).intValue();
						if (i_31_ == -2147483647)
							i_31_ = i_19_;
						if (i_31_ == -2147483646)
							i_31_ = i_21_;
						if (i_31_ == -2147483645)
							i_31_ = (class39_sub5_sub17_20_ == null ? -1 : class39_sub5_sub17_20_.anInt2084);
						if (i_31_ == -2147483644)
							i_31_ = i;
						if (i_31_ == -2147483643)
							i_31_ = (class39_sub5_sub17_20_ == null ? -1 : class39_sub5_sub17_20_.anInt2102);
						if (i_31_ == -2147483642)
							i_31_ = (class39_sub5_sub17 != null ? class39_sub5_sub17.anInt2084 : -1);
						if (i_31_ == -2147483641)
							i_31_ = (class39_sub5_sub17 != null ? class39_sub5_sub17.anInt2102 : -1);
						RSSocket.anIntArray309[i_28_++] = i_31_;
					}
				}
				for (;;) {
					i_27_ = is_26_[++i_25_];
					if (i_27_ < 100) {
						if (i_27_ == 0) {
							Class39_Sub7.anIntArray1371[i_23_++] = is[i_25_];
							continue;
						}
						if (i_27_ == 1) {
							int i_32_ = is[i_25_];
							Class39_Sub7.anIntArray1371[i_23_++] = Class66.anIntArray1152[i_32_];
							continue;
						}
						if (i_27_ == 2) {
							int i_33_ = is[i_25_];
							Class66.anIntArray1152[i_33_] = Class39_Sub7.anIntArray1371[--i_23_];
							continue;
						}
						if (i_27_ == 3) {
							Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class39_sub5_sub2.aClass3Array1708[i_25_];
							continue;
						}
						if (i_27_ == 6) {
							i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 7) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_ + 1] != Class39_Sub7.anIntArray1371[i_23_])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 8) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_] == Class39_Sub7.anIntArray1371[i_23_ + 1])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 9) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_] < Class39_Sub7.anIntArray1371[i_23_ + 1])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 10) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_ + 1] < Class39_Sub7.anIntArray1371[i_23_])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 21) {
							if (Class39_Sub11.anInt1461 != 0) {
								Class24 class24 = (Class39_Sub4.aClass24Array1330[--Class39_Sub11.anInt1461]);
								RSSocket.anIntArray309 = class24.anIntArray440;
								Class42.aClass3Array796 = class24.aClass3Array450;
								class39_sub5_sub2 = class24.aClass39_Sub5_Sub2_451;
								i_25_ = class24.anInt453;
								is = class39_sub5_sub2.anIntArray1696;
								is_26_ = class39_sub5_sub2.anIntArray1694;
								continue;
							}
							break;
						}
						if (i_27_ == 25) {
							int i_34_ = is[i_25_];
							Class39_Sub7.anIntArray1371[i_23_++] = Class44.method913(i_34_, (byte) -83);
							continue;
						}
						if (i_27_ == 27) {
							int i_35_ = is[i_25_];
							Class45.method929((Class39_Sub7.anIntArray1371[--i_23_]), -118, i_35_);
							continue;
						}
						if (i_27_ == 31) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_ + 1] >= Class39_Sub7.anIntArray1371[i_23_])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 32) {
							i_23_ -= 2;
							if (Class39_Sub7.anIntArray1371[i_23_] >= Class39_Sub7.anIntArray1371[i_23_ + 1])
								i_25_ += is[i_25_];
							continue;
						}
						if (i_27_ == 33) {
							Class39_Sub7.anIntArray1371[i_23_++] = RSSocket.anIntArray309[is[i_25_]];
							continue;
						}
						if (i_27_ == 34) {
							RSSocket.anIntArray309[is[i_25_]] = Class39_Sub7.anIntArray1371[--i_23_];
							continue;
						}
						if (i_27_ == 35) {
							Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = Class42.aClass3Array796[is[i_25_]];
							continue;
						}
						if (i_27_ == 36) {
							Class42.aClass3Array796[is[i_25_]] = Class39_Sub5_Sub8.aClass3Array1792[--i_24_];
							continue;
						}
						if (i_27_ == 37) {
							int i_36_ = is[i_25_];
							i_24_ -= i_36_;
							JString class3 = Class57_Sub2.method1013(i_36_, (Class39_Sub5_Sub8.aClass3Array1792), (byte) -47, i_24_);
							Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class3;
							continue;
						}
						if (i_27_ == 38) {
							i_23_--;
							continue;
						}
						if (i_27_ == 39) {
							i_24_--;
							continue;
						}
						if (i_27_ == 40) {
							int i_37_ = is[i_25_];
							Class39_Sub5_Sub2 class39_sub5_sub2_38_ = Class1.method46(19506, i_37_);
							int[] is_39_ = new int[class39_sub5_sub2_38_.anInt1710];
							JString[] class3s = new JString[class39_sub5_sub2_38_.anInt1709];
							for (int i_40_ = 0; i_40_ < class39_sub5_sub2_38_.anInt1707; i_40_++)
								is_39_[i_40_] = (Class39_Sub7.anIntArray1371[(-class39_sub5_sub2_38_.anInt1707 + (i_23_ + i_40_))]);
							for (int i_41_ = 0; i_41_ < class39_sub5_sub2_38_.anInt1700; i_41_++)
								class3s[i_41_] = (Class39_Sub5_Sub8.aClass3Array1792[(i_24_ - (class39_sub5_sub2_38_.anInt1700 - i_41_))]);
							i_24_ -= class39_sub5_sub2_38_.anInt1700;
							i_23_ -= class39_sub5_sub2_38_.anInt1707;
							Class24 class24 = new Class24();
							class24.anInt453 = i_25_;
							i_25_ = -1;
							class24.anIntArray440 = RSSocket.anIntArray309;
							class24.aClass3Array450 = Class42.aClass3Array796;
							class24.aClass39_Sub5_Sub2_451 = class39_sub5_sub2;
							Class39_Sub4.aClass24Array1330[Class39_Sub11.anInt1461++] = class24;
							Class42.aClass3Array796 = class3s;
							RSSocket.anIntArray309 = is_39_;
							class39_sub5_sub2 = class39_sub5_sub2_38_;
							is_26_ = class39_sub5_sub2.anIntArray1694;
							is = class39_sub5_sub2.anIntArray1696;
							continue;
						}
						if (i_27_ == 42) {
							Class39_Sub7.anIntArray1371[i_23_++] = Class57.anIntArray1003[is[i_25_]];
							continue;
						}
						if (i_27_ == 43) {
							Class57.anIntArray1003[is[i_25_]] = Class39_Sub7.anIntArray1371[--i_23_];
							continue;
						}
						if (i_27_ == 44) {
							int i_42_ = is[i_25_] >> 16;
							int i_43_ = is[i_25_] & 0xffff;
							int i_44_ = Class39_Sub7.anIntArray1371[--i_23_];
							if (i_44_ < 0 || i_44_ > 5000)
								throw new RuntimeException();
							int i_45_ = -1;
							if (i_43_ == 105)
								i_45_ = 0;
							Class24.anIntArray449[i_42_] = i_44_;
							for (int i_46_ = 0; i_44_ > i_46_; i_46_++)
								Class30.anIntArrayArray540[i_42_][i_46_] = i_45_;
							continue;
						}
						if (i_27_ == 45) {
							int i_47_ = is[i_25_];
							int i_48_ = Class39_Sub7.anIntArray1371[--i_23_];
							if (i_48_ < 0 || i_48_ >= Class24.anIntArray449[i_47_])
								throw new RuntimeException();
							Class39_Sub7.anIntArray1371[i_23_++] = Class30.anIntArrayArray540[i_47_][i_48_];
							continue;
						}
						if (i_27_ == 46) {
							int i_49_ = is[i_25_];
							i_23_ -= 2;
							int i_50_ = Class39_Sub7.anIntArray1371[i_23_];
							if (i_50_ < 0 || Class24.anIntArray449[i_49_] <= i_50_)
								throw new RuntimeException();
							Class30.anIntArrayArray540[i_49_][i_50_] = Class39_Sub7.anIntArray1371[i_23_ + 1];
							continue;
						}
					}
					boolean bool;
					if (is[i_25_] != 1)
						bool = false;
					else
						bool = true;
					if (i_27_ >= 1000) {
						if ((i_27_ < 1000 || i_27_ >= 1100) && (i_27_ < 2000 || i_27_ >= 2100)) {
							if ((i_27_ < 1100 || i_27_ >= 1200) && (i_27_ < 2100 || i_27_ >= 2200)) {
								if ((i_27_ < 1200 || i_27_ >= 1300) && (i_27_ < 2200 || i_27_ >= 2300)) {
									if (i_27_ >= 1300 && i_27_ < 1400 || i_27_ >= 2300 && i_27_ < 2400) {
										RSInterface class39_sub5_sub17_51_;
										if (i_27_ < 2000)
											class39_sub5_sub17_51_ = (!bool ? (Class44.aClass39_Sub5_Sub17_841) : (Class43.aClass39_Sub5_Sub17_810));
										else {
											i_27_ -= 1000;
											class39_sub5_sub17_51_ = (Class37.getInterface((byte) 41, (Class39_Sub7.anIntArray1371[--i_23_])));
										}
										if (i_27_ == 1300) {
											int i_52_ = ((Class39_Sub7.anIntArray1371[--i_23_]) - 1);
											if (i_52_ < 0 || i_52_ > 9)
												i_24_--;
											else
												class39_sub5_sub17_51_.method756(1, (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]), i_52_);
										} else if (i_27_ == 1301) {
											i_23_ -= 2;
											int i_53_ = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
											int i_54_ = (Class39_Sub7.anIntArray1371[i_23_]);
											class39_sub5_sub17_51_.aClass39_Sub5_Sub17_2040 = (Class62_Sub2.method1081(i_54_, i_53_, 0));
										} else if (i_27_ == 1302)
											class39_sub5_sub17_51_.aBoolean2108 = (Class39_Sub7.anIntArray1371[--i_23_]) == 1;
										else if (i_27_ == 1303)
											class39_sub5_sub17_51_.anInt2056 = (Class39_Sub7.anIntArray1371[--i_23_]);
										else if (i_27_ == 1304)
											class39_sub5_sub17_51_.anInt2008 = (Class39_Sub7.anIntArray1371[--i_23_]);
										else if (i_27_ == 1305)
											class39_sub5_sub17_51_.aClass3_2065 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
										else {
											if (i_27_ != 1306)
												break;
											class39_sub5_sub17_51_.aClass3_2023 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
										}
									} else if ((i_27_ < 1400 || i_27_ >= 1500) && (i_27_ < 2400 || i_27_ >= 2500)) {
										if (i_27_ >= 1600) {
											if (i_27_ < 1700) {
												RSInterface class39_sub5_sub17_55_ = (!bool ? (Class44.aClass39_Sub5_Sub17_841) : (Class43.aClass39_Sub5_Sub17_810));
												if (i_27_ == 1600)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_55_.anInt2064);
												else if (i_27_ == 1601)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_55_.anInt1994);
												else if (i_27_ == 1602)
													Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (class39_sub5_sub17_55_.text);
												else if (i_27_ == 1603)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_55_.anInt2020);
												else {
													if (i_27_ != 1604)
														break;
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_55_.anInt2095);
												}
											} else if (i_27_ < 1800) {
												RSInterface class39_sub5_sub17_56_ = (bool ? (Class43.aClass39_Sub5_Sub17_810) : (Class44.aClass39_Sub5_Sub17_841));
												if (i_27_ == 1700)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_56_.anInt1997);
												else if (i_27_ == 1701) {
													if ((class39_sub5_sub17_56_.anInt1997) == -1)
														Class39_Sub7.anIntArray1371[i_23_++] = 0;
													else
														Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_56_.anInt2096);
												} else {
													if (i_27_ != 1702)
														break;
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_56_.anInt2102);
												}
											} else if (i_27_ >= 2600) {
												if (i_27_ >= 2700) {
													if (i_27_ < 2800) {
														RSInterface class39_sub5_sub17_57_ = (Class37.getInterface((byte) 64, (Class39_Sub7.anIntArray1371[--i_23_])));
														if (i_27_ == 2700)
															Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_57_.anInt1997);
														else {
															if (i_27_ != 2701)
																break;
															if ((class39_sub5_sub17_57_.anInt1997) != -1)
																Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_57_.anInt2096);
															else
																Class39_Sub7.anIntArray1371[i_23_++] = 0;
														}
													} else if (i_27_ >= 3200) {
														if (i_27_ >= 3300) {
															if (i_27_ < 3400) {
																if (i_27_ == 3300)
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class2.anInt48);
																else if (i_27_ == 3301) {
																	i_23_ -= 2;
																	int i_58_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_59_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class39_Sub11.method869(86, i_59_, i_58_));
																} else if (i_27_ == 3302) {
																	i_23_ -= 2;
																	int i_60_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_61_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class57_Sub2.method1018(i_60_, 16485, i_61_));
																} else if (i_27_ == 3303) {
																	i_23_ -= 2;
																	int i_62_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_63_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class39_Sub5_Sub4_Sub3.method505(i_62_, (byte) -124, i_63_));
																} else if (i_27_ == 3304) {
																	int i_64_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class65.method1098((byte) 102, i_64_).anInt1746);
																} else if (i_27_ == 3305) {
																	int i_65_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class31.anIntArray555[i_65_]);
																} else {
																	if (i_27_ != 3306)
																		break;
																	int i_66_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class39_Sub12.anIntArray1491[i_66_]);
																}
															} else if (i_27_ < 4100) {
																if (i_27_ == 4000) {
																	i_23_ -= 2;
																	int i_67_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_68_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_68_ + i_67_);
																} else if (i_27_ == 4001) {
																	i_23_ -= 2;
																	int i_69_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_70_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_69_ - i_70_);
																} else if (i_27_ == 4002) {
																	i_23_ -= 2;
																	int i_71_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_72_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_72_ * i_71_);
																} else if (i_27_ == 4003) {
																	i_23_ -= 2;
																	int i_73_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_74_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_73_ / i_74_);
																} else if (i_27_ == 4004) {
																	int i_75_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (int) (Math.random() * (double) i_75_);
																} else if (i_27_ == 4005) {
																	int i_76_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (int) (Math.random() * (double) (i_76_ + 1));
																} else if (i_27_ == 4006) {
																	i_23_ -= 5;
																	int i_77_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_78_ = (Class39_Sub7.anIntArray1371[(i_23_ + 2)]);
																	int i_79_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_80_ = (Class39_Sub7.anIntArray1371[(i_23_ + 3)]);
																	int i_81_ = (Class39_Sub7.anIntArray1371[(i_23_ + 4)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_77_ + ((i_79_ - i_77_) * (-i_78_ + i_81_) / (-i_78_ + i_80_)));
																} else if (i_27_ == 4007) {
																	i_23_ -= 2;
																	int i_82_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_83_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_82_ + (i_83_ * i_82_ / 100));
																} else if (i_27_ == 4008) {
																	i_23_ -= 2;
																	int i_84_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_85_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Queue.method989(1 << i_85_, i_84_));
																} else if (i_27_ == 4009) {
																	i_23_ -= 2;
																	int i_86_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_87_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class34.method342(-(1 << i_87_) - 1, i_86_));
																} else if (i_27_ == 4010) {
																	i_23_ -= 2;
																	int i_88_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_89_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = ((Class34.method342(i_89_, 1 << i_88_)) != 0 ? 1 : 0);
																} else if (i_27_ == 4011) {
																	i_23_ -= 2;
																	int i_90_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_91_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (i_91_ % i_90_);
																} else if (i_27_ == 4012) {
																	i_23_ -= 2;
																	int i_92_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_93_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	if (i_93_ != 0)
																		Class39_Sub7.anIntArray1371[i_23_++] = (int) Math.pow((double) i_93_, (double) i_92_);
																	else
																		Class39_Sub7.anIntArray1371[i_23_++] = 0;
																} else if (i_27_ == 4013) {
																	i_23_ -= 2;
																	int i_94_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_95_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	if (i_94_ == 0)
																		Class39_Sub7.anIntArray1371[i_23_++] = 0;
																	else if (i_95_ == 0)
																		Class39_Sub7.anIntArray1371[i_23_++] = 2147483647;
																	else
																		Class39_Sub7.anIntArray1371[i_23_++] = (int) Math.pow((double) i_94_, 1.0 / (double) i_95_);
																} else if (i_27_ == 4014) {
																	i_23_ -= 2;
																	int i_96_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	int i_97_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class34.method342(i_96_, i_97_));
																} else {
																	if (i_27_ != 4015)
																		break;
																	i_23_ -= 2;
																	int i_98_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_99_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Queue.method989(i_98_, i_99_));
																}
															} else if (i_27_ >= 4200) {
																if (i_27_ >= 4300)
																	break;
																if (i_27_ == 4200) {
																	int i_100_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class26.method291(-59, i_100_).aClass3_1661);
																} else if (i_27_ == 4201) {
																	i_23_ -= 2;
																	int i_101_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_102_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub5_Sub1 class39_sub5_sub1 = (Class26.method291(-125, i_101_));
																	if ((i_102_ >= 1) && (i_102_ <= 5) && (class39_sub5_sub1.aClass3Array1672[i_102_ - 1]) != null)
																		Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class39_sub5_sub1.aClass3Array1672[i_102_ - 1];
																	else
																		Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = Class39_Sub12.aClass3_1492;
																} else if (i_27_ == 4202) {
																	i_23_ -= 2;
																	int i_103_ = (Class39_Sub7.anIntArray1371[i_23_]);
																	int i_104_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																	Class39_Sub5_Sub1 class39_sub5_sub1 = (Class26.method291(-46, i_103_));
																	if ((i_104_ < 1) || (i_104_ > 5) || (class39_sub5_sub1.aClass3Array1657[i_104_ - 1]) == null)
																		Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = Class39_Sub12.aClass3_1492;
																	else
																		Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class39_sub5_sub1.aClass3Array1657[i_104_ - 1];
																} else if (i_27_ == 4203) {
																	int i_105_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = (Class26.method291(-113, i_105_).anInt1686);
																} else if (i_27_ == 4204) {
																	int i_106_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = ((Class26.method291(-21, i_106_).anInt1662) == 1 ? 1 : 0);
																} else if (i_27_ == 4205) {
																	int i_107_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub5_Sub1 class39_sub5_sub1 = (Class26.method291(-11, i_107_));
																	if (((class39_sub5_sub1.anInt1644) == -1) && (class39_sub5_sub1.anInt1651 >= 0))
																		Class39_Sub7.anIntArray1371[i_23_++] = class39_sub5_sub1.anInt1651;
																	else
																		Class39_Sub7.anIntArray1371[i_23_++] = i_107_;
																} else if (i_27_ == 4206) {
																	int i_108_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub5_Sub1 class39_sub5_sub1 = (Class26.method291(-71, i_108_));
																	if (((class39_sub5_sub1.anInt1644) >= 0) && (class39_sub5_sub1.anInt1651 >= 0))
																		Class39_Sub7.anIntArray1371[i_23_++] = class39_sub5_sub1.anInt1651;
																	else
																		Class39_Sub7.anIntArray1371[i_23_++] = i_108_;
																} else {
																	if (i_27_ != 4207)
																		break;
																	int i_109_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																	Class39_Sub7.anIntArray1371[i_23_++] = ((Class26.method291(-127, i_109_).aBoolean1653) ? 1 : 0);
																}
															} else if (i_27_ == 4100) {
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
																int i_110_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class39_Sub5_Sub11.method708((new JString[] { class3, (Class57.method1007((byte) 71, i_110_)) }), 14569));
															} else if (i_27_ == 4101) {
																i_24_ -= 2;
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[i_24_]);
																JString class3_111_ = (Class39_Sub5_Sub8.aClass3Array1792[(i_24_ + 1)]);
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class39_Sub5_Sub11.method708((new JString[] { class3, class3_111_ }), 14569));
															} else if (i_27_ == 4102) {
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
																int i_112_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class39_Sub5_Sub11.method708((new JString[] { class3, (Class39_Sub5_Sub4_Sub4_Sub1.method519(10, true, i_112_)) }), 14569));
															} else if (i_27_ == 4103) {
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (class3.toLowerCase());
															} else if (i_27_ == 4104) {
																int i_113_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																long l = (((long) i_113_ + 11745L) * 86400000L);
																Class42.aCalendar786.setTime(new Date(l));
																int i_114_ = (Class42.aCalendar786.get(5));
																int i_115_ = (Class42.aCalendar786.get(2));
																int i_116_ = (Class42.aCalendar786.get(1));
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class39_Sub5_Sub11.method708((new JString[] { (Class57.method1007((byte) 71, i_114_)), (Class12.aClass3_191), (Class43.aClass3Array808[i_115_]), (Class12.aClass3_191), (Class57.method1007((byte) 71, i_116_)) }), 14569));
															} else if (i_27_ == 4105) {
																i_24_ -= 2;
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[i_24_]);
																JString class3_117_ = (Class39_Sub5_Sub8.aClass3Array1792[(i_24_ + 1)]);
																if (((Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.aClass45_2516) == null) || !(Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.aClass45_2516.aBoolean854))
																	Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class3;
																else
																	Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = class3_117_;
															} else if (i_27_ == 4106) {
																int i_118_ = (Class39_Sub7.anIntArray1371[--i_23_]);
																Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (Class57.method1007((byte) 71, i_118_));
															} else if (i_27_ == 4107) {
																i_24_ -= 2;
																Class39_Sub7.anIntArray1371[i_23_++] = (Class39_Sub5_Sub8.aClass3Array1792[i_24_].compareString(10445, (Class39_Sub5_Sub8.aClass3Array1792[(i_24_ + 1)])));
															} else if (i_27_ == 4108) {
																i_23_ -= 2;
																int i_119_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																int i_120_ = (Class39_Sub7.anIntArray1371[i_23_]);
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
																byte[] is_121_ = (Class55.aClass9_Sub1_1242.method165(30605, i_119_, 0));
																TextRenderer class39_sub5_sub10_sub1 = (new TextRenderer(is_121_));
																Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub10_sub1.method634(class3, i_120_));
															} else {
																if (i_27_ != 4109)
																	break;
																i_23_ -= 2;
																JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
																int i_122_ = (Class39_Sub7.anIntArray1371[i_23_]);
																int i_123_ = (Class39_Sub7.anIntArray1371[(i_23_ + 1)]);
																byte[] is_124_ = (Class55.aClass9_Sub1_1242.method165(30605, i_123_, 0));
																TextRenderer class39_sub5_sub10_sub1 = (new TextRenderer(is_124_));
																Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub10_sub1.method631(class3, i_122_));
															}
														} else if (i_27_ == 3200) {
															i_23_ -= 3;
															CollisionMap.method296((Class39_Sub7.anIntArray1371[i_23_ + 2]), (Class39_Sub7.anIntArray1371[i_23_ + 1]), true, (Class39_Sub7.anIntArray1371[i_23_]));
														} else if (i_27_ == 3201)
															Class45.method916((Class39_Sub7.anIntArray1371[--i_23_]), -44);
														else {
															if (i_27_ != 3202)
																break;
															i_23_ -= 2;
															Class37.method351(1, (Class39_Sub7.anIntArray1371[i_23_ + 1]), (Class39_Sub7.anIntArray1371[i_23_]));
														}
													} else if (i_27_ == 3100) {
														JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
														Class42.pushMessage((Class39_Sub12.aClass3_1492), class3, false, 0);
													} else if (i_27_ == 3101) {
														i_23_ -= 2;
														Class46_Sub1.method944((Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109), (Class39_Sub7.anIntArray1371[i_23_]), -12, (Class39_Sub7.anIntArray1371[i_23_ + 1]));
													} else if (i_27_ == 3102) {
														int i_125_ = (Class39_Sub7.anIntArray1371[--i_23_]);
														if (i_125_ >= 0 && (i_125_ < (Tile.anIntArray1914).length) && ((Tile.anIntArray1914[i_125_]) != -1)) {
															ISAAC.aBoolean1089 = true;
															Class39_Sub14.aBoolean1520 = true;
															Node.anInt728 = i_125_;
														}
													} else {
														if (i_27_ != 3103)
															break;
														Class55.method999(31121);
													}
												} else {
													RSInterface class39_sub5_sub17_126_ = (Class37.getInterface((byte) 40, (Class39_Sub7.anIntArray1371[--i_23_])));
													if (i_27_ == 2600)
														Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_126_.anInt2064);
													else if (i_27_ == 2601)
														Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_126_.anInt1994);
													else if (i_27_ == 2602)
														Class39_Sub5_Sub8.aClass3Array1792[i_24_++] = (class39_sub5_sub17_126_.text);
													else if (i_27_ == 2603)
														Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_126_.anInt2020);
													else {
														if (i_27_ != 2604)
															break;
														Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_126_.anInt2095);
													}
												}
											} else {
												RSInterface class39_sub5_sub17_127_ = (Class37.getInterface((byte) 20, (Class39_Sub7.anIntArray1371[--i_23_])));
												if (i_27_ == 2500)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_127_.mainX);
												else if (i_27_ == 2501)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_127_.mainY);
												else if (i_27_ == 2502)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_127_.anInt2104);
												else if (i_27_ == 2503)
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_127_.anInt2015);
												else if (i_27_ == 2504)
													Class39_Sub7.anIntArray1371[i_23_++] = (!(class39_sub5_sub17_127_.aBoolean2055) ? 0 : 1);
												else {
													if (i_27_ != 2505)
														break;
													Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_127_.anInt2050);
												}
											}
										} else {
											RSInterface class39_sub5_sub17_128_ = (!bool ? (Class44.aClass39_Sub5_Sub17_841) : (Class43.aClass39_Sub5_Sub17_810));
											if (i_27_ == 1500)
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.mainX);
											else if (i_27_ == 1501)
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.mainY);
											else if (i_27_ == 1502)
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.anInt2104);
											else if (i_27_ == 1503)
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.anInt2015);
											else if (i_27_ == 1504)
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.aBoolean2055) ? 1 : 0;
											else {
												if (i_27_ != 1505)
													break;
												Class39_Sub7.anIntArray1371[i_23_++] = (class39_sub5_sub17_128_.anInt2050);
											}
										}
									} else {
										RSInterface class39_sub5_sub17_129_;
										if (i_27_ >= 2000) {
											class39_sub5_sub17_129_ = (Class37.getInterface((byte) 66, (Class39_Sub7.anIntArray1371[--i_23_])));
											i_27_ -= 1000;
										} else
											class39_sub5_sub17_129_ = (!bool ? (Class44.aClass39_Sub5_Sub17_841) : (Class43.aClass39_Sub5_Sub17_810));
										JString class3 = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
										Object[] objects_130_ = (new Object[class3.length() + 1]);
										for (int i_131_ = objects_130_.length - 1; i_131_ >= 1; i_131_--) {
											if (class3.charAt(i_131_ - 1) == 115)
												objects_130_[i_131_] = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
											else
												objects_130_[i_131_] = (new Integer(Class39_Sub7.anIntArray1371[--i_23_]));
										}
										objects_130_[0] = new Integer(Class39_Sub7.anIntArray1371[--i_23_]);
										if (i_27_ == 1406)
											class39_sub5_sub17_129_.anObjectArray2004 = objects_130_;
										if (i_27_ == 1412)
											class39_sub5_sub17_129_.anObjectArray2075 = objects_130_;
										if (i_27_ == 1416)
											class39_sub5_sub17_129_.anObjectArray2099 = objects_130_;
										if (i_27_ == 1408)
											class39_sub5_sub17_129_.anObjectArray2016 = objects_130_;
										if (i_27_ == 1400)
											class39_sub5_sub17_129_.anObjectArray2035 = objects_130_;
										if (i_27_ == 1411)
											class39_sub5_sub17_129_.anObjectArray2044 = objects_130_;
										if (i_27_ == 1401)
											class39_sub5_sub17_129_.anObjectArray2080 = objects_130_;
										if (i_27_ == 1403)
											class39_sub5_sub17_129_.anObjectArray2019 = objects_130_;
										if (i_27_ == 1414)
											class39_sub5_sub17_129_.anObjectArray2061 = objects_130_;
										if (i_27_ == 1410)
											class39_sub5_sub17_129_.anObjectArray2088 = objects_130_;
										if (i_27_ == 1404)
											class39_sub5_sub17_129_.anObjectArray2100 = objects_130_;
										if (i_27_ == 1415)
											class39_sub5_sub17_129_.anObjectArray2062 = objects_130_;
										if (i_27_ == 1417)
											class39_sub5_sub17_129_.anObjectArray2039 = objects_130_;
										if (i_27_ == 1405)
											class39_sub5_sub17_129_.anObjectArray2018 = objects_130_;
										class39_sub5_sub17_129_.aBoolean2047 = true;
										if (i_27_ == 1413)
											class39_sub5_sub17_129_.anObjectArray2097 = objects_130_;
										if (i_27_ == 1407)
											class39_sub5_sub17_129_.anObjectArray2101 = objects_130_;
										if (i_27_ == 1402)
											class39_sub5_sub17_129_.anObjectArray2085 = objects_130_;
										if (i_27_ == 1409)
											class39_sub5_sub17_129_.anObjectArray2045 = objects_130_;
									}
								} else {
									RSInterface class39_sub5_sub17_132_;
									if (i_27_ < 2000)
										class39_sub5_sub17_132_ = (bool ? (Class43.aClass39_Sub5_Sub17_810) : (Class44.aClass39_Sub5_Sub17_841));
									else {
										class39_sub5_sub17_132_ = (Class37.getInterface((byte) 81, (Class39_Sub7.anIntArray1371[--i_23_])));
										i_27_ -= 1000;
									}
									Deque.method967(class39_sub5_sub17_132_, (byte) -22);
									if (i_27_ == 1200) {
										i_23_ -= 2;
										int i_133_ = (Class39_Sub7.anIntArray1371[i_23_]);
										int i_134_ = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
										class39_sub5_sub17_132_.anInt1997 = i_133_;
										class39_sub5_sub17_132_.anInt2096 = i_134_;
									} else if (i_27_ == 1201) {
										class39_sub5_sub17_132_.anInt2009 = 2;
										class39_sub5_sub17_132_.anInt2026 = (Class39_Sub7.anIntArray1371[--i_23_]);
									} else {
										if (i_27_ != 1202)
											break;
										class39_sub5_sub17_132_.anInt2009 = 3;
										class39_sub5_sub17_132_.anInt2026 = Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.aClass45_2516.method928(124);
									}
								}
							} else {
								RSInterface class39_sub5_sub17_135_;
								if (i_27_ < 2000)
									class39_sub5_sub17_135_ = (!bool ? Class44.aClass39_Sub5_Sub17_841 : Class43.aClass39_Sub5_Sub17_810);
								else {
									i_27_ -= 1000;
									class39_sub5_sub17_135_ = Class37.getInterface((byte) 111, (Class39_Sub7.anIntArray1371[--i_23_]));
								}
								Deque.method967(class39_sub5_sub17_135_, (byte) -22);
								if (i_27_ == 1100) {
									i_23_ -= 2;
									class39_sub5_sub17_135_.anInt2064 = Class39_Sub7.anIntArray1371[i_23_];
									class39_sub5_sub17_135_.anInt1994 = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
								} else if (i_27_ == 1101)
									class39_sub5_sub17_135_.anInt2077 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1102)
									class39_sub5_sub17_135_.aBoolean2076 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else if (i_27_ == 1103)
									class39_sub5_sub17_135_.anInt2030 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1104)
									class39_sub5_sub17_135_.anInt2083 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1105)
									class39_sub5_sub17_135_.anInt2093 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1106)
									class39_sub5_sub17_135_.anInt2051 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1107)
									class39_sub5_sub17_135_.aBoolean2014 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else if (i_27_ == 1108) {
									class39_sub5_sub17_135_.anInt2009 = 1;
									class39_sub5_sub17_135_.anInt2026 = Class39_Sub7.anIntArray1371[--i_23_];
								} else if (i_27_ == 1109) {
									i_23_ -= 6;
									class39_sub5_sub17_135_.anInt2072 = Class39_Sub7.anIntArray1371[i_23_];
									class39_sub5_sub17_135_.anInt2058 = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
									class39_sub5_sub17_135_.anInt2098 = (Class39_Sub7.anIntArray1371[i_23_ + 2]);
									class39_sub5_sub17_135_.anInt2011 = (Class39_Sub7.anIntArray1371[i_23_ + 3]);
									class39_sub5_sub17_135_.anInt2007 = (Class39_Sub7.anIntArray1371[i_23_ + 4]);
									class39_sub5_sub17_135_.anInt2074 = (Class39_Sub7.anIntArray1371[i_23_ + 5]);
								} else if (i_27_ == 1110)
									class39_sub5_sub17_135_.anInt2103 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1111)
									class39_sub5_sub17_135_.aBoolean2081 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else if (i_27_ == 1112)
									class39_sub5_sub17_135_.text = (Class39_Sub5_Sub8.aClass3Array1792[--i_24_]);
								else if (i_27_ == 1113)
									class39_sub5_sub17_135_.anInt2105 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1114) {
									i_23_ -= 3;
									class39_sub5_sub17_135_.anInt2032 = Class39_Sub7.anIntArray1371[i_23_];
									class39_sub5_sub17_135_.anInt1996 = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
									class39_sub5_sub17_135_.anInt2036 = (Class39_Sub7.anIntArray1371[i_23_ + 2]);
								} else if (i_27_ == 1115)
									class39_sub5_sub17_135_.aBoolean2059 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else if (i_27_ == 1116)
									class39_sub5_sub17_135_.anInt2022 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1117)
									class39_sub5_sub17_135_.anInt2003 = Class39_Sub7.anIntArray1371[--i_23_];
								else if (i_27_ == 1118)
									class39_sub5_sub17_135_.aBoolean2107 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else if (i_27_ == 1119)
									class39_sub5_sub17_135_.aBoolean2038 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
								else {
									if (i_27_ != 1120)
										break;
									i_23_ -= 2;
									class39_sub5_sub17_135_.anInt2020 = Class39_Sub7.anIntArray1371[i_23_];
									class39_sub5_sub17_135_.anInt2095 = (Class39_Sub7.anIntArray1371[i_23_ + 1]);
								}
							}
						} else {
							RSInterface class39_sub5_sub17_136_;
							if (i_27_ < 2000)
								class39_sub5_sub17_136_ = (bool ? Class43.aClass39_Sub5_Sub17_810 : Class44.aClass39_Sub5_Sub17_841);
							else {
								i_27_ -= 1000;
								class39_sub5_sub17_136_ = Class37.getInterface((byte) 67, (Class39_Sub7.anIntArray1371[--i_23_]));
							}
							Deque.method967(class39_sub5_sub17_136_, (byte) -22);
							if (i_27_ == 1000) {
								i_23_ -= 2;
								class39_sub5_sub17_136_.mainX = Class39_Sub7.anIntArray1371[i_23_];
								class39_sub5_sub17_136_.mainY = Class39_Sub7.anIntArray1371[i_23_ + 1];
							} else if (i_27_ == 1001) {
								i_23_ -= 2;
								class39_sub5_sub17_136_.anInt2104 = Class39_Sub7.anIntArray1371[i_23_];
								class39_sub5_sub17_136_.anInt2015 = Class39_Sub7.anIntArray1371[i_23_ + 1];
							} else {
								if (i_27_ != 1003)
									break;
								class39_sub5_sub17_136_.aBoolean2055 = (Class39_Sub7.anIntArray1371[--i_23_] == 1);
							}
						}
					} else if (i_27_ == 100) {
						i_23_ -= 3;
						int i_137_ = Class39_Sub7.anIntArray1371[i_23_ + 1];
						int i_138_ = Class39_Sub7.anIntArray1371[i_23_];
						int i_139_ = Class39_Sub7.anIntArray1371[i_23_ + 2];
						if (i_137_ == 0)
							throw new RuntimeException();
						RSInterface class39_sub5_sub17_140_ = Class37.getInterface((byte) 9, i_138_);
						if ((class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025) == null)
							class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025 = new RSInterface[i_139_ + 1];
						if ((class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025).length <= i_139_) {
							RSInterface[] class39_sub5_sub17s = new RSInterface[i_139_ + 1];
							for (int i_141_ = 0; ((class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025).length > i_141_); i_141_++)
								class39_sub5_sub17s[i_141_] = (class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025[i_141_]);
							class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025 = class39_sub5_sub17s;
						}
						RSInterface class39_sub5_sub17_142_ = new RSInterface();
						class39_sub5_sub17_142_.anInt2050 = class39_sub5_sub17_142_.anInt2084 = class39_sub5_sub17_140_.anInt2084;
						class39_sub5_sub17_142_.aBoolean2013 = true;
						class39_sub5_sub17_142_.anInt2102 = i_139_;
						class39_sub5_sub17_142_.drawType = i_137_;
						class39_sub5_sub17_140_.aClass39_Sub5_Sub17Array2025[i_139_] = class39_sub5_sub17_142_;
						if (bool)
							Class43.aClass39_Sub5_Sub17_810 = class39_sub5_sub17_142_;
						else
							Class44.aClass39_Sub5_Sub17_841 = class39_sub5_sub17_142_;
						Deque.method967(class39_sub5_sub17_140_, (byte) -22);
					} else if (i_27_ == 101) {
						RSInterface class39_sub5_sub17_143_ = (!bool ? Class44.aClass39_Sub5_Sub17_841 : Class43.aClass39_Sub5_Sub17_810);
						RSInterface class39_sub5_sub17_144_ = Class37.getInterface((byte) 55, (class39_sub5_sub17_143_.anInt2084));
						class39_sub5_sub17_144_.aClass39_Sub5_Sub17Array2025[class39_sub5_sub17_143_.anInt2102] = null;
						Deque.method967(class39_sub5_sub17_144_, (byte) -22);
					} else if (i_27_ == 102) {
						RSInterface class39_sub5_sub17_145_ = Class37.getInterface((byte) 28, (Class39_Sub7.anIntArray1371[--i_23_]));
						class39_sub5_sub17_145_.aClass39_Sub5_Sub17Array2025 = null;
						Deque.method967(class39_sub5_sub17_145_, (byte) -22);
					} else {
						if (i_27_ != 200)
							break;
						i_23_ -= 2;
						int i_146_ = Class39_Sub7.anIntArray1371[i_23_];
						int i_147_ = Class39_Sub7.anIntArray1371[i_23_ + 1];
						RSInterface class39_sub5_sub17_148_ = Class62_Sub2.method1081(i_146_, i_147_, 0);
						if (class39_sub5_sub17_148_ == null || i_147_ == -1)
							Class39_Sub7.anIntArray1371[i_23_++] = 0;
						else {
							Class39_Sub7.anIntArray1371[i_23_++] = 1;
							if (!bool)
								Class44.aClass39_Sub5_Sub17_841 = class39_sub5_sub17_148_;
							else
								Class43.aClass39_Sub5_Sub17_810 = class39_sub5_sub17_148_;
						}
					}
				}
			} catch (Exception exception) {
				Class39_Sub7.method849(exception, 64, ("CS2 - scr:" + class39_sub5_sub2.hash + " op:" + i_27_));
			}
		}
	}

	public void method515(int i) {
		anInt2312 = i;
		anInt2254 = 0;
	}

	public static void method516(World class38, byte i, int i_149_, CollisionMap[] class27s, byte[] is, int i_150_) {
		Stream class39_sub6 = new Stream(is);
		int i_151_ = -1;
		for (;;) {
			int i_152_ = class39_sub6.readByteOrShort();
			if (i_152_ == 0)
				break;
			i_151_ += i_152_;
			int i_153_ = 0;
			for (;;) {
				int i_154_ = class39_sub6.readByteOrShort();
				if (i_154_ == 0)
					break;
				i_153_ += i_154_ - 1;
				int i_155_ = i_153_ & 0x3f;
				int i_156_ = class39_sub6.readByte((byte) -8);
				int i_157_ = i_153_ >> 12;
				int i_158_ = i_156_ >> 2;
				int i_159_ = i_153_ >> 6 & 0x3f;
				int i_160_ = i_156_ & 0x3;
				int i_161_ = i_155_ + i_150_;
				int i_162_ = i_149_ + i_159_;
				if (i_162_ > 0 && i_161_ > 0 && i_162_ < 103 && i_161_ < 103) {
					CollisionMap class27 = null;
					int i_163_ = i_157_;
					if ((Class55.tileSettings[1][i_162_][i_161_] & 0x2) == 2)
						i_163_--;
					if (i_163_ >= 0)
						class27 = class27s[i_163_];
					Class62_Sub1.method1059(i_158_, class38, i_161_, i_151_, i_157_, i_162_, class27, true, i_160_);
				}
			}
		}
	}

	public static void method517(byte i) {
		synchronized (Class4.anObject61) {
			if (Class23.anInt433 != 0) {
				Class23.anInt433 = 1;
				try {
					Class4.anObject61.wait();
				} catch (InterruptedException interruptedexception) {
					/* empty */
				}
			}
		}
	}

	public void method518(int i, int i_164_, boolean bool) {
		int i_165_ = anIntArray2255[0];
		int i_166_ = anIntArray2314[0];
		if ((i_164_ ^ 0xffffffff) == i) {
			i_166_--;
			i_165_++;
		}
		if (anInt2268 != -1 && Class62_Sub1.method1064(anInt2268, (byte) 54).anInt1837 == 1)
			anInt2268 = -1;
		if (anInt2312 < 9)
			anInt2312++;
		if (i_164_ == 1)
			i_165_++;
		for (int i_167_ = anInt2312; i_167_ > 0; i_167_--) {
			anIntArray2314[i_167_] = anIntArray2314[i_167_ - 1];
			anIntArray2255[i_167_] = anIntArray2255[i_167_ - 1];
			aBooleanArray2284[i_167_] = aBooleanArray2284[i_167_ - 1];
		}
		aBooleanArray2284[0] = bool;
		if (i_164_ == 2) {
			i_165_++;
			i_166_++;
		}
		if (i_164_ == 3)
			i_166_--;
		if (i_164_ == 4)
			i_166_++;
		if (i_164_ == 5) {
			i_166_--;
			i_165_--;
		}
		if (i_164_ == 6)
			i_165_--;
		if (i_164_ == 7) {
			i_166_++;
			i_165_--;
		}
		anIntArray2314[0] = i_166_;
		anIntArray2255[0] = i_165_;
	}

	public GameCharacter() {
		anInt2252 = -1000;
		anInt2254 = 0;
		anInt2250 = 32;
		anInt2264 = -1;
		anInt2257 = -1;
		anInt2271 = 0;
		anInt2267 = 0;
		anInt2259 = 100;
		anInt2260 = -1;
		anInt2262 = -1;
		anInt2282 = -1;
		anInt2263 = -1;
		anIntArray2286 = new int[4];
		anInt2268 = -1;
		anInt2293 = -1;
		anInt2265 = 0;
		anInt2291 = 0;
		anInt2276 = 0;
		aClass3_2295 = null;
		aBoolean2298 = false;
		anInt2296 = 0;
		anInt2303 = -1;
		anIntArray2273 = new int[4];
		anInt2304 = 0;
		anInt2306 = 0;
		anIntArray2258 = new int[4];
		anInt2283 = 0;
		anInt2274 = 0;
		aBooleanArray2284 = new boolean[10];
		anInt2312 = 0;
		anInt2305 = 0;
		anInt2300 = 0;
		anIntArray2314 = new int[10];
		anInt2290 = 0;
		anInt2280 = -1;
		anInt2270 = -1;
		anInt2308 = 200;
		anInt2317 = -1;
		anInt2316 = 0;
		anInt2297 = 1;
		anInt2311 = 0;
	}

	static {
		aClass3_2281 = Class39_Sub5_Sub9.createJString(116, "Use");
		aClass3_2302 = Class39_Sub5_Sub9.createJString(109, "Unerwartete Antwort vom Anmelde)2Server)3");
		aClass3_2307 = Class39_Sub5_Sub9.createJString(117, "Members object");
		aClass3_2309 = Class39_Sub5_Sub9.createJString(124, "Registrierter Benutzer");
		anInt2299 = 0;
		anInt2313 = 255;
		aClass3_2319 = Class39_Sub5_Sub9.createJString(114, "(X");
		aClass3_2310 = aClass3_2281;
		aClass3_2289 = aClass3_2307;
	}
}
